﻿using UnityEngine;

namespace LuaInterface
{
    public static class LuaConst
    {
        public static string luaDir = Application.dataPath + "/Lua";                //lua逻辑代码目录
        public static string toluaDir = Application.dataPath + "/LuaFramework/ToLua/Lua";        //tolua lua文件目录

#if UNITY_STANDALONE
        public static string osDir = "Win";
#elif UNITY_ANDROID
    public static string osDir = "Android";            
#elif UNITY_IPHONE
    public static string osDir = "iOS";        
#else
    public static string osDir = "";        
#endif

        public static string luaResDir = string.Format("{0}/{1}/Lua", Application.persistentDataPath, osDir);      //手机运行时lua文件下载目录    

#if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN
    public static string zbsDir = "D:/ZeroBraneStudio/lualibs/mobdebug";        //ZeroBraneStudio目录       
#elif UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX
        public static string zbsDir = "/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/lualibs/mobdebug";
#else
    public static string zbsDir = luaResDir + "/mobdebug/";
#endif

        public static bool openLuaSocket = true;            //是否打开Lua Socket库
        public static bool openLuaDebugger = false;         //是否连接lua调试器






        public const int mainAppVersion = 1;

		public const bool DebugMode = true;                       //调试模式-用于内部测试
		public const bool LuaBundleMode = false;                    //Lua代码AssetBundle模式

        public const bool UpdateMode = false;                       //更新模式-默认关闭 
        public const bool LuaByteMode = false;                       //Lua字节码模式-默认关闭 

        public const string LuaTempDir = "tempDir";                    //临时文件夹
        public const string ExtName = ".unity3d";                   //素材扩展名
        public const string AssetDir = "StreamingAssets";           //素材目录 
        public const string WebUrl = "http://10.0.15.3:8080/bsg/";      //测试更新地址


		public const string SocketAddress = "localhost";
		public const int SocketPort = 8080;
    }
}